package com.weixin.common.controller;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.weixin.common.aop.SuperValid;
import com.weixin.common.common.R;
import com.weixin.common.common.ResponseResult;
import com.weixin.common.model.dto.LoginDto;
import com.weixin.common.model.vo.AuthVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouShenBin
 * @date 2024/4/17 16:25
 * @description
 */

@RestController
@RequestMapping("/debug")
public class DebugController {

    @SuperValid
    @PostMapping("/test1")
    public JSONObject test1() {
        String jsonStr = "{\"code\":0,\"msg\":\"单据入库成功\",\"data\":{\"docno\":\"PU202401010000001\"}}";
        return JSONUtil.parseObj(jsonStr);
    }
}
